<?php
class InstallAction extends PiscesAction
{
	public function __construct()
	{
		parent::__construct();
	}
	
	public function beforeExecute()
	{
		parent::beforeExecute();
		
		$tmpBaseDir	= substr(dirname(__FILE__), 0, strrpos(__FILE__, "app")).'tmp/';
		if(is_file($tmpBaseDir."/install.lock"))
		{
			exit("你已经安装过程序，如果想重新安装，请先删除pisces/code/tmp目录下的install.lock文件");
		}
	}
}
